<template>
	<view>
		<button type="default" @click="testFunc">云函数的调用</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			testFunc() {
				uniCloud.callFunction({
					name:'test_level_1',
					data: {
						username: 'mk',
						password: '123456'
					},
					success(res) {
						console.log(res);
					}
				})
			}
		}
	}
</script>

<style scoped>

</style>